package com.gla.market.entity;

public class Video {
    private Integer id;
    private String name;
    private String url;
    private Integer commodity_id;
    private Integer type_id;
    private String cover_url;
    private  String commodity_name;

    public Video(Integer id,String name,String url,Integer commodity_id,Integer type_id,String cover_url,String commodity_name){
        this.id = id;
        this.name = name;
        this.url = url;
        this.commodity_id = commodity_id;
        this.type_id = type_id;
        this.cover_url = cover_url;
        this.commodity_name = commodity_name;
    }

    public Video(){

    }

    public void setId(Integer id) {
        this.id = id;
    }

    public void setCommodity_id(Integer commodity_id) {
        this.commodity_id = commodity_id;
    }

    public void setCover_url(String cover_url) {
        this.cover_url = cover_url;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setType_id(Integer type_id) {
        this.type_id = type_id;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public void setCommodity_name(String commodity_name) {
        this.commodity_name = commodity_name;
    }

    public Integer getId() {
        return id;
    }

    public Integer getCommodity_id() {
        return commodity_id;
    }

    public Integer getType_id() {
        return type_id;
    }

    public String getCover_url() {
        return cover_url;
    }

    public String getName() {
        return name;
    }

    public String getUrl() {
        return url;
    }

    public String getCommodity_name() {
        return commodity_name;
    }

    @Override
    public String toString() {
        return "Video{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", url='" + url + '\'' +
                ", commodity_id=" + commodity_id +
                ", type_id=" + type_id +
                ", cover_url='" + cover_url + '\'' +
                ", commodity_name='" + commodity_name + '\'' +
                '}';
    }
}
